package opera;

import Book.BookList;
import Book.book;



/**
 * @Author: shark爱吃辣椒
 * @Date: 2022-19-14:39
 * @Description:
 */
public class Show implements IOpera{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示所有的图书");
        int bookslength  = bookList.getBooksnum();
        for (int i = 0; i < bookslength; i++) {
            book book = bookList.getbook(i);
            System.out.println(book);
        }
    }
}
